package managers.popupManager;

import java.awt.event.ActionListener;
import java.awt.event.ComponentListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;

public class ConfirmDialog extends InformationDialog {

	private JButton btnAccetta;
	private JButton btnRifiuta;

	
	public ConfirmDialog(ActionListener okAction, ComponentListener listener, String eventType) {
		super(listener, eventType);
		
		btnAccetta = new JButton("");
		btnAccetta.setIcon(new ImageIcon(ConfirmDialog.class.getResource("/images/stdIcons32/accept.png")));
		btnAccetta.setBounds(275, 48, 36, 36);
		btnAccetta.addActionListener(okAction);
		panel.add(btnAccetta);
		
		btnRifiuta = new JButton("");
		btnRifiuta.setIcon(new ImageIcon(ConfirmDialog.class.getResource("/images/stdIcons32/delete.png")));
		btnRifiuta.setBounds(275, 8, 36, 36);
		panel.add(btnRifiuta);
		
		
	}

	
}
